<?php


if (!isset($_SESSION['user_login_id'])) {
    header("location:login.php");
    // die();
}
?>
<div class="container main_container">
    <div class="row">
        <div class="col-md-12">
            <?php
            if (isset($_POST['usersubmit'])) {
                $object->AddUserProfiles();
            }
            $object->display_user_profile();
           
            $result = $object->CheckUserProfile($_SESSION['user_login_id']);
            
            //print_r($res);
            if ($result) {
                ?>
            <div class="container profile_container">
    <div class="col-md-12 profile_title">
     Profile
 </div>
 <div class="col-md-12 profile_detail_bar no_pad">
     
  <div class="col-md-12 profile_name_bar">
        <div class="col-md-12 profile_name no_pad ">Anjlina jonson</div>
     <div class="col-md-12 horizontal_line"></div>
     <div class="col-md-12   no_pad">
                     <p class="col-md-12 profile_detail no_pad">
                         <span>Description : </span>Lorem Ipsum is simply dummy text of the printing and typesetting industry. 
       Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
      </p>
                         <div class="col-md-1 address no_pad"><span>Address :</span> </div>
       <div class="col-md-10 no_pad">
           8901 Marmora Road, Glasgow, D04 89GR. <br>
        Freephone: +1 800 559 6580<br>
        Telephone: +1 800 603 6035<br>
        Fax: +1 800 889 9898<br>
        E-mail: mail@demolink.org<br>
       </div>
       <p class="col-md-12 profile_detail no_pad"><span>DOB : </span>12-oct-1992. </p>
                        <p class="col-md-12 profile_detail no_pad"><span>Qualification : </span>M.tech(science).</p>
                        <p class="col-md-12 profile_detail no_pad"><span>Institute : </span>Bright academy of science and technology.</p>
                        <p class="col-md-12 profile_detail no_pad"><span>Experience : </span>12 years experience at Bright academy of science and technology.</p>
                        <p class="col-md-12 profile_detail no_pad"><span>Subjects : </span>Science, Maths.</p> 
      <p class="col-md-12 profile_detail no_pad"><span>Remarks : </span>every one.</p>
      <p class="col-md-12 profile_detail no_pad"><span>Charges : </span>5000.</p>      
       </div>
    
  </div>
 </div>
</div>
            Welcome <?php echo $result['first_name']; ?>
                
                <?php
                
            } else {
                ?>
                <form role="form" method="post" action="">
                    <h2>Please Sign Up <small>It's free and always will be.</small></h2>
                    <hr class="colorgraph">
                    <div class="row">
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <input type="text" name="first_name" id="first_name" class="form-control input-lg" placeholder="First Name" tabindex="1" required />
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <input type="text" name="last_name" id="last_name" class="form-control input-lg" placeholder="Last Name" tabindex="2" required />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <input type="text" name="middel_name" id="middel_name" class="form-control input-lg" placeholder="Middel Name" tabindex="1" required />
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <input type="text" name="phone" id="phone" class="form-control input-lg" placeholder="Phone Number" tabindex="2" required />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-sm-6 col-md-4">
                            <div class="form-group">
                                <input type="text" name="country" id="country" class="form-control input-lg" placeholder="Country" tabindex="1" required />
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6 col-md-4">
                            <div class="form-group">
                                <input type="text" name="state" id="state" class="form-control input-lg" placeholder="State" tabindex="2" required />
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6 col-md-4">
                            <div class="form-group">
                                <input type="text" name="city" id="city" class="form-control input-lg" placeholder="City" tabindex="2" required />
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <textarea name="discriptions" class="form-control input-lg" placeholder="Discriptions" rows="5" ></textarea>
                    </div>
                    <div class="row">
                        <select class="form-control input-lg" name="role[]" multiple="multiple" >

                            <option value="Student">Student</option>
                            <option value="Professor">Professor</option>

                        </select>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-1">IsActive:</label>
                            <div class="col-xs-2">
                                <label class="checkbox-inline">
                                    <input type="checkbox" name="active" value="1">
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-1">Confirm:</label>
                            <div class="col-xs-2">
                                <label class="checkbox-inline">
                                    <input type="checkbox" name="confirm" value="1">
                                </label>
                            </div>
                        </div>
                    </div><br/>
                    <div class="row">
                        <div class="col-xs-12 col-md-6">
                            <input type="submit" name="usersubmit" class="btn btn-success btn-block btn-lg " value="Sign In"  />
                        </div>
                    </div>
                </form>
    <?php }
?>
        </div>
    </div>
</div>
<style>
    /* profile goes here */
.profile_container{
padding-top:30px;
padding-bottom:30px;
}
.profile_title{
background-color:#CB202D;
padding-top:15px;
padding-bottom:15px;
color:white;
font-size:20px;
font-weight:bold;
}
.profile_detail_bar{
padding-top:30px;
padding-bottom:30px;
}

.horizontal_line{
background-color: #CB202D;
padding-top: 2px;
}
.profile_name{
padding-bottom:10px;
font-size:16px;
font-weight:bold;
color:#CB202D;
}
.profile_detail{
padding-top:10px;
}

.profile_detail span{
color:#CB202D;
font-weight:bold;
font-size:14px;
}

.address span{
color:#CB202D;
font-weight:bold;
font-size:14px;
}
</style>